package com.carl.zlds.controller;

import com.carl.zlds.tool.common.result.CodeMsg;
import com.carl.zlds.tool.common.result.Result;
import com.fasterxml.jackson.annotation.JsonInclude;

/**
 * @author carl
 */
public class EditorResult<T> {
    private int errno;
    private T data;

    public int getErrno() {
        return errno;
    }

    public void setErrno(int errno) {
        this.errno = errno;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public static <T> EditorResult<T> success(T data) {
        return new EditorResult(data);
    }

    private EditorResult() {
    }

    private EditorResult(T data) {
        this.data = data;
    }
}